<?php
class ImportFprLateItemsForm extends CFormModel
{
    public $csvFile;
    public $truncateTable;
    public $skipFirstNumLines;

    public function rules()
    {
        return array(
            array('skipFirstNumLines','required'),
            array('truncateTable','safe'),
            array('skipFirstNumLines','numerical'),
            array('csvFile', 'file', 'types'=>'csv'),
        );
    }
    public function attributeLabels()
    {
        return array(
            'csvFile' => Yii::t('site','CSV File'),
            'skipFirstNumLines' => Yii::t('site','Skip the first N lines'),
            'truncateTable' => Yii::t('site','Truncate Table'),
        );
    }
}

/* vim:set ai sw=4 sts=4 et fdm=marker fdc=4: */ 
?>
